import 'dart:io';

import 'package:flutter/services.dart';

class StLivenessDetector {
  static const MethodChannel _channel = MethodChannel('st_liveness_detector');
  static Future<Map?> startDetect() async {
    return await _channel.invokeMethod('startDetect');
  }

  static Future checkPermission() async {
    if (Platform.isIOS) {
      print("IOS不检测权限");
      return true;
    } else {
      return await _channel.invokeMethod('checkPermission');
    }
  }
}
